-- GENERATED SPELL FOR [Iron Rune Steelguard] --


function spell0_23673(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(49758,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23673', 583, 1)
end

function spell1_23673(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_23673', 30323, 1)
end

function Sorts_23673(pUnit, Event)
local choix_sorts_23673 = math.random(0, 1)
if choix_sorts_23673 == 0 then
pUnit:RegisterEvent('spell0_23673', 1, 1)
end
if choix_sorts_23673 == 1 then
pUnit:RegisterEvent('spell1_23673', 1, 1)
end
end

function mob23673_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23673', math.random(1500, 3000), 1)
end

function mob23673_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23673_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23673_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23673, 1, 'mob23673_Action')
RegisterUnitEvent(23673, 2, 'mob23673_Leave')
RegisterUnitEvent(23673, 3, 'mob23673_Kill')
RegisterUnitEvent(23673, 4, 'mob23673_Die')
